package com.example.stu.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.stu.entity.PageStu;
import com.example.stu.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Date: 2021/2/7
 * @Author: 黄先军
 * @Description:
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    /**
     * 带分页和条件查询所有学生信息
     * @return
     */
    List<Student> pages(Page<Student> page, @Param("stu") PageStu pageStu);
    /**
     * 带条件查询所有学生信息
     * @return
     */
    List<Student> pages(@Param("stu") PageStu pageStu);
}
